package com.myhexin.alert.service.impl;

import com.myhexin.alert.properties.AlertProperties;
import com.myhexin.alert.service.AlertSender;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Jayce
 * @version 1.0.0
 * @date 2021/10/7
 * @desc
 */
@Slf4j
public class VanishAlertSenderImpl implements AlertSender {
    private final AlertProperties.VanishMessage vanishMessage;
    public VanishAlertSenderImpl(AlertProperties.VanishMessage vanishMessage) {
        this.vanishMessage = vanishMessage;
    }
    @Override
    public boolean send() {
        log.info("【告警信息】vanish, 用户: {}, 消息: {}", vanishMessage.getUsername(), vanishMessage.getMessage());
        return false;
    }
}
